apiVersion: v1
items:
- apiVersion: v1
  kind: BuildConfig
  metadata:
    labels:
      build: sse2fedmsg
    name: sse2fedmsg-docker-build
  spec:
    runPolicy: Serial
    source:
      dockerfile: |-
        FROM fedora:27
        LABEL \
            name="sse2fedmsg" \
            vendor="Fedora Infrastructure" \
            license="MIT"
        RUN dnf -y --enablerepo updates-testing update && \
            dnf -y --enablerepo updates-testing install \
            git \
            python3-pip \
            python3-fedmsg \
            python3-sseclient && \
            dnf clean all
        RUN pip-3 install git+https://github.com/fedora-infra/sse2fedmsg.git
        RUN rm /etc/fedmsg.d/*py
        RUN mkdir -p /etc/pki/fedmsg/
        RUN ln -sf /etc/pki/fedmsg/key/fedmsg-librariesio2fedmsg.key /etc/pki/fedmsg/librariesio2fedmsg.key
        RUN ln -sf /etc/pki/fedmsg/crt/fedmsg-librariesio2fedmsg.crt /etc/pki/fedmsg/librariesio2fedmsg.crt
        ENV USER=librariesio2fedmsg
        RUN chmod 777 /var/run/fedmsg/
        ENTRYPOINT sse2fedmsg librariesio http://firehose.libraries.io/events
      type: Dockerfile
    strategy:
      type: Docker
    output:
      to:
        kind: ImageStreamTag
        name: sse2fedmsg:latest
kind: List
metadata: {}
